Skip to content

glib: 2.84.4 -> 2.85.4; gjs: 1.84.2 -> 1.85.2#437764

Closed
pyrox0 wants to merge 2 commits into
NixOS:stagingfrom
pyrox0:bump/glib+gjs
Closed

glib: 2.84.4 -> 2.85.4; gjs: 1.84.2 -> 1.85.2#437764
pyrox0 wants to merge 2 commits into
NixOS:stagingfrom
pyrox0:bump/glib+gjs

Conversation

@pyrox0

@pyrox0 pyrox0 commented Aug 28, 2025

Copy link
Copy Markdown
Member

Primarily to upgrade gjs to use a non-EOL(in 3 weeks) version of spidermonkey. Current test failures as discussed on matrix, but this branch is here so folks can help debug that issue.

Edit: Note that at this time, this is not ready to merge, as gjs fails to build.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

github-actions[bot]

This comment was marked as resolved.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 28, 2025
@pyrox0 pyrox0 changed the base branch from master to staging August 28, 2025 04:22
@nixpkgs-ci nixpkgs-ci Bot closed this Aug 28, 2025
@nixpkgs-ci nixpkgs-ci Bot reopened this Aug 28, 2025
@github-actions github-actions Bot dismissed their stale review August 28, 2025 04:24

All good now, thank you!

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 28, 2025
@pyrox0 pyrox0 marked this pull request as draft August 29, 2025 16:56
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Aug 29, 2025
@pyrox0

pyrox0 commented Aug 29, 2025

Copy link
Copy Markdown
Member Author

@LordGrimmauld I was able to build this PR, but I got build errors from gjs. Do you have any suggestions for how i could fix this, besides just disabling the test? Its not one that seems to have broken before, so idk why its breaking now(also sorry for a ping like 2 days after you asked in the sec discussions channel, got busy irl)

@LordGrimmauld

Copy link
Copy Markdown
Contributor

There also was the spidermonkey bump, i am not sure whether gjs built after that one at all (and testing is quite painful). Do you have a log?

@bobby285271

bobby285271 commented Aug 29, 2025

Copy link
Copy Markdown
Member

Since I was able to build this on 6067f89, if you cannot build this here you can probably first try reverting glib to 2.85.3 (then maybe you will need to bisect glib).

FYI these updates are development releases and it is very unlikely for any of the teams.gnome.members to review these bumps (or cherry-picks for mozjs) outside a GNOME 49 PR...

@pyrox0

pyrox0 commented Aug 29, 2025

Copy link
Copy Markdown
Member Author

How do I know what releases are development or not?

@LordGrimmauld

LordGrimmauld commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

gnome has a odd-unstable release model for their libraries. That means 2.84 is stable while 2.85 is dev.
However, seeing as spidermonkey 128 is going EOL soon-ish, the update of gjs might still be valuable for security reasons.

@jtojnar

jtojnar commented Sep 6, 2025

Copy link
Copy Markdown
Member

Thanks for the PR. Now absorbed by #440720

Though two tests now fail:

gjs:Scripts / Gtk4Warnings
test:         gjs:Scripts / Gtk4Warnings
start time:   21:50:55
duration:     0.24s
result:       exit status 0
command:      MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_DEBUG=fatal-warnings,fatal-criticals G_FILENAME_ENCODING=latin1 GJS_DEBUG_TOPICS='' GJS_USE_UNINSTALLED_FILES=1 GS
ETTINGS_SCHEMA_DIR=/build/gjs-1.85.90/build/installed-tests/js GSK_RENDERER=ngl G_SLICE=always-malloc GJS_PATH='' GSETTINGS_BACKEND=memory MESON_TEST_ITERATION=1 LSAN_OPTIONS=fast_unwind_on_malloc=0,exitcode=23,
suppressions=/build/gjs-1.85.90/installed-tests/extra/lsan.supp GI_TYPELIB_PATH=/build/gjs-1.85.90/build:/build/gjs-1.85.90/build/subprojects/gobject-introspection-tests:/build/gjs-1.85.90/build/installed-tests/
js:/build/gjs-1.85.90/build/installed-tests/js/libgjstesttools:/nix/store/z5d3vghffx42q136rny1jnc479gy2x66-glib-2.86.0/lib/girepository-1.0:/nix/store/s01gz27h937scaqdh8bsn3pz4x9g5imi-gobject-introspection-wrapp
ed-1.84.0/lib/girepository-1.0:/nix/store/g8qnjs7gadz0w211n43hsrwmb3qjixxn-at-spi2-core-2.57.2/lib/girepository-1.0:/nix/store/frhqnslm4b7rmvkw33gqqgai6631cwr4-gdk-pixbuf-2.43.5/lib/girepository-1.0:/nix/store/q
dcklmp105hr6cvnjbmlm486frxncwk0-gsettings-desktop-schemas-49.rc/lib/girepository-1.0:/nix/store/1lishn6sc8nagb8zslm74xkd0j5nmqfa-harfbuzz-11.2.1/lib/girepository-1.0:/nix/store/5kfy9vslam1gl1cyha9z5fdg207gfjkp-p
ango-1.57.0/lib/girepository-1.0:/nix/store/jzr7irgzp2a4383hn8mwmdbjwl9lh21r-gtk+3-3.24.50/lib/girepository-1.0:/nix/store/mlmxvmgr7d3vm71h0lvqw1n5g00kpbfv-graphene-1.10.8/lib/girepository-1.0:/nix/store/n1bav17
4qafdv28dr2ppiqapb4y4yn2l-gtk4-4.20.0/lib/girepository-1.0:/nix/store/43wa35s7ig3yn12vbd7pj4safmpa855n-gobject-introspection-1.84.0/lib/girepository-1.0 MALLOC_PERTURB_=2 UBSAN_OPTIONS=halt_on_error=1:abort_on_e
rror=1:print_summary=1:print_stacktrace=1 DYLD_LIBRARY_PATH=/build/gjs-1.85.90/build:/build/gjs-1.85.90/build/subprojects/gobject-introspection-tests:/build/gjs-1.85.90/build/installed-tests/js:/build/gjs-1.85.9
0/build/installed-tests/js/libgjstesttools TSAN_OPTIONS=history_size=5,force_seq_cst_atomics=1,suppressions=/build/gjs-1.85.90/installed-tests/extra/tsan.supp GJS_DEBUG_OUTPUT=stderr ENABLE_GTK=yes LD_LIBRARY_PA
TH=/build/gjs-1.85.90/build/:/build/gjs-1.85.90/build:/build/gjs-1.85.90/build/subprojects/gobject-introspection-tests:/build/gjs-1.85.90/build/installed-tests/js:/build/gjs-1.85.90/build/installed-tests/js/libg
jstesttools NO_AT_BRIDGE=1 ASAN_OPTIONS=intercept_tls_get_addr=0 TOP_BUILDDIR=/build/gjs-1.85.90/build LC_ALL=C.utf8 /build/gjs-1.85.90/installed-tests/scripts/testGtk4Warnings.sh
----------------------------------- stdout -----------------------------------
not ok 1 - Issue 443 GObject wrapper disposed warning
1..1
----------------------------------- stderr -----------------------------------
Trace/breakpoint trap (core dumped)
gjs:JS / Package
test:         gjs:JS / Package
start time:   21:50:55
duration:     0.10s
result:       exit status 0
command:      MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 G_DEBUG=fatal-warnings,fatal-criticals G_FILENAME_ENCODING=latin1 GJS_DEBUG_TOPICS='' MALLOC_PERTURB_=107 GJS_USE_UN
INSTALLED_FILES=1 GSETTINGS_SCHEMA_DIR=/build/gjs-1.85.90/build/installed-tests/js GSK_RENDERER=ngl G_SLICE=always-malloc GJS_PATH='' GSETTINGS_BACKEND=memory MESON_TEST_ITERATION=1 LSAN_OPTIONS=fast_unwind_on_m
alloc=0,exitcode=23,suppressions=/build/gjs-1.85.90/installed-tests/extra/lsan.supp GI_TYPELIB_PATH=/build/gjs-1.85.90/build:/build/gjs-1.85.90/build/subprojects/gobject-introspection-tests:/build/gjs-1.85.90/bu
ild/installed-tests/js:/build/gjs-1.85.90/build/installed-tests/js/libgjstesttools:/nix/store/z5d3vghffx42q136rny1jnc479gy2x66-glib-2.86.0/lib/girepository-1.0:/nix/store/s01gz27h937scaqdh8bsn3pz4x9g5imi-gobject
-introspection-wrapped-1.84.0/lib/girepository-1.0:/nix/store/g8qnjs7gadz0w211n43hsrwmb3qjixxn-at-spi2-core-2.57.2/lib/girepository-1.0:/nix/store/frhqnslm4b7rmvkw33gqqgai6631cwr4-gdk-pixbuf-2.43.5/lib/gireposit
ory-1.0:/nix/store/qdcklmp105hr6cvnjbmlm486frxncwk0-gsettings-desktop-schemas-49.rc/lib/girepository-1.0:/nix/store/1lishn6sc8nagb8zslm74xkd0j5nmqfa-harfbuzz-11.2.1/lib/girepository-1.0:/nix/store/5kfy9vslam1gl1
cyha9z5fdg207gfjkp-pango-1.57.0/lib/girepository-1.0:/nix/store/jzr7irgzp2a4383hn8mwmdbjwl9lh21r-gtk+3-3.24.50/lib/girepository-1.0:/nix/store/mlmxvmgr7d3vm71h0lvqw1n5g00kpbfv-graphene-1.10.8/lib/girepository-1.
0:/nix/store/n1bav174qafdv28dr2ppiqapb4y4yn2l-gtk4-4.20.0/lib/girepository-1.0:/nix/store/43wa35s7ig3yn12vbd7pj4safmpa855n-gobject-introspection-1.84.0/lib/girepository-1.0 UBSAN_OPTIONS=halt_on_error=1:abort_on
_error=1:print_summary=1:print_stacktrace=1 DYLD_LIBRARY_PATH=/build/gjs-1.85.90/build:/build/gjs-1.85.90/build/subprojects/gobject-introspection-tests:/build/gjs-1.85.90/build/installed-tests/js:/build/gjs-1.85
.90/build/installed-tests/js/libgjstesttools TSAN_OPTIONS=history_size=5,force_seq_cst_atomics=1,suppressions=/build/gjs-1.85.90/installed-tests/extra/tsan.supp GJS_DEBUG_OUTPUT=stderr ENABLE_GTK=yes LD_LIBRARY_
PATH=/build/gjs-1.85.90/build/:/build/gjs-1.85.90/build:/build/gjs-1.85.90/build/subprojects/gobject-introspection-tests:/build/gjs-1.85.90/build/installed-tests/js:/build/gjs-1.85.90/build/installed-tests/js/li
bgjstesttools NO_AT_BRIDGE=1 ASAN_OPTIONS=intercept_tls_get_addr=0 TOP_BUILDDIR=/build/gjs-1.85.90/build LC_ALL=C.utf8 /build/gjs-1.85.90/build/installed-tests/js/minijasmine /build/gjs-1.85.90/build/../installe
d-tests/js/testPackage.js
----------------------------------- stdout -----------------------------------
1..20
ok 1 Package module finds an existing library
ok 2 Package module doesn't find a non-existent library
ok 3 Package module finds a function
ok 4 Package module doesn't find a non-existent function
ok 5 Package module finds a class
ok 6 Package module doesn't find a non-existent class
ok 7 Package module finds a property
ok 8 Package module doesn't find a non-existent property
ok 9 Package module finds a static function
ok 10 Package module doesn't find a non-existent static function
ok 11 Package module finds a method
ok 12 Package module doesn't find a non-existent method
ok 13 Package module finds an interface
ok 14 Package module doesn't find a non-existent interface
ok 15 Package module finds an interface method
not ok 16 Package module doesn't find a non-existent interface method
# Message: TypeError: GObject.type_default_interface_ref is not a function in resource:///org/gnome/gjs/modules/script/package.js (line 304)
# Stack:
#   error properties: Object({ matches: Function })
#   checkSymbol@resource:///org/gnome/gjs/modules/script/package.js:304:29
#   @/build/gjs-1.85.90/build/../installed-tests/js/testPackage.js:68:20
#   <Jasmine>
#   setTimeout/source<@resource:///org/gnome/gjs/modules/esm/_timers.js:72:9
#   _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34
ok 17 Package module finds an enum value
ok 18 Package module doesn't find a non-existent enum value
ok 19 Package module finds a constant

If I revert the gjs bump, only one of them fails:

gjs:JS / Package
test:         gjs:JS / Package
start time:   21:51:50
duration:     0.10s
result:       exit status 0
command:      GJS_PATH='' ASAN_OPTIONS=intercept_tls_get_addr=0 GJS_USE_UNINSTALLED_FILES=1 G_DEBUG=fatal-warnings,fatal-criticals GSETTINGS_SCHEMA_DIR=/build/gjs-1.84.2/build/installed-tests/js GSETTINGS_BACKEND=memory MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 GJS_DEBUG_OUTPUT=stderr LSAN_OPTIONS=fast_unwind_on_malloc=0,exitcode=23,suppressions=/build/gjs-1.84.2/installed-tests/extra/lsan.supp NO_AT_BRIDGE=1 MALLOC_PERTURB_=154 MESON_TEST_ITERATION=1 LD_LIBRARY_PATH=/build/gjs-1.84.2/build/:/build/gjs-1.84.2/build:/build/gjs-1.84.2/build/subprojects/gobject-introspection-tests:/build/gjs-1.84.2/build/installed-tests/js:/build/gjs-1.84.2/build/installed-tests/js/libgjstesttools DYLD_LIBRARY_PATH=/build/gjs-1.84.2/build:/build/gjs-1.84.2/build/subprojects/gobject-introspection-tests:/build/gjs-1.84.2/build/installed-tests/js:/build/gjs-1.84.2/build/installed-tests/js/libgjstesttools GI_TYPELIB_PATH=/build/gjs-1.84.2/build:/build/gjs-1.84.2/build/subprojects/gobject-introspection-tests:/build/gjs-1.84.2/build/installed-tests/js:/build/gjs-1.84.2/build/installed-tests/js/libgjstesttools:/nix/store/z5d3vghffx42q136rny1jnc479gy2x66-glib-2.86.0/lib/girepository-1.0:/nix/store/s01gz27h937scaqdh8bsn3pz4x9g5imi-gobject-introspection-wrapped-1.84.0/lib/girepository-1.0:/nix/store/g8qnjs7gadz0w211n43hsrwmb3qjixxn-at-spi2-core-2.57.2/lib/girepository-1.0:/nix/store/frhqnslm4b7rmvkw33gqqgai6631cwr4-gdk-pixbuf-2.43.5/lib/girepository-1.0:/nix/store/qdcklmp105hr6cvnjbmlm486frxncwk0-gsettings-desktop-schemas-49.rc/lib/girepository-1.0:/nix/store/1lishn6sc8nagb8zslm74xkd0j5nmqfa-harfbuzz-11.2.1/lib/girepository-1.0:/nix/store/5kfy9vslam1gl1cyha9z5fdg207gfjkp-pango-1.57.0/lib/girepository-1.0:/nix/store/jzr7irgzp2a4383hn8mwmdbjwl9lh21r-gtk+3-3.24.50/lib/girepository-1.0:/nix/store/mlmxvmgr7d3vm71h0lvqw1n5g00kpbfv-graphene-1.10.8/lib/girepository-1.0:/nix/store/n1bav174qafdv28dr2ppiqapb4y4yn2l-gtk4-4.20.0/lib/girepository-1.0:/nix/store/43wa35s7ig3yn12vbd7pj4safmpa855n-gobject-introspection-1.84.0/lib/girepository-1.0 TOP_BUILDDIR=/build/gjs-1.84.2/build GJS_DEBUG_TOPICS='' G_SLICE=always-malloc ENABLE_GTK=yes TSAN_OPTIONS=history_size=5,force_seq_cst_atomics=1,suppressions=/build/gjs-1.84.2/installed-tests/extra/tsan.supp G_FILENAME_ENCODING=latin1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 LC_ALL=C.utf8 /build/gjs-1.84.2/build/installed-tests/js/minijasmine /build/gjs-1.84.2/build/../installed-tests/js/testPackage.js
----------------------------------- stdout -----------------------------------
1..20
ok 1 Package module finds an existing library
ok 2 Package module doesn't find a non-existent library
ok 3 Package module finds a function
ok 4 Package module doesn't find a non-existent function
ok 5 Package module finds a class
ok 6 Package module doesn't find a non-existent class
ok 7 Package module finds a property
ok 8 Package module doesn't find a non-existent property
ok 9 Package module finds a static function
ok 10 Package module doesn't find a non-existent static function
ok 11 Package module finds a method
ok 12 Package module doesn't find a non-existent method
ok 13 Package module finds an interface
ok 14 Package module doesn't find a non-existent interface
ok 15 Package module finds an interface method
not ok 16 Package module doesn't find a non-existent interface method
# Message: TypeError: GObject.type_default_interface_ref is not a function in resource:///org/gnome/gjs/modules/script/package.js (line 302)
# Stack:
#   error properties: Object({ matches: Function })
#   checkSymbol@resource:///org/gnome/gjs/modules/script/package.js:302:29
#   @/build/gjs-1.84.2/build/../installed-tests/js/testPackage.js:68:20
#   <Jasmine>
#   setTimeout/source<@resource:///org/gnome/gjs/modules/esm/_timers.js:72:9
#   _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:263:34
ok 17 Package module finds an enum value
ok 18 Package module doesn't find a non-existent enum value
ok 19 Package module finds a constant
ok 20 Package module doesn't find a non-existent constant

@pyrox0

pyrox0 commented Sep 15, 2025

Copy link
Copy Markdown
Member Author

Closing in favor of #440720

@pyrox0 pyrox0 closed this Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants